/*
 * @Description: 
 * @Version: 2.0
 * @Autor: ftt
 * @Date: 2022-06-10 14:20:48
 * @LastEditors: TT
 * @LastEditTime: 2022-06-22 09:39:27
 */

import 'package:hzy_normal_widget/hzy_normal_widget.dart';
import 'package:hzy_template/pages/my/routers/my_routers.dart';
import '../../components/common_web_page.dart';
import '../../pages/home/pages/nav_home_page.dart';
import '../../pages/home/routers/home_routers.dart';
import '../../pages/login_module/routers/login_routers.dart';
import '../config_index.dart';

class RouterS {
  static List<GetPage> getAllRoutS() {
    return [
      ..._normalGroupRouteS(),
      ..._middleWaresRouteS(),
      ...HomePages.routes,
      ...LoginPages.routes,
      ...MyRouters.router,
    ];
  }

  /// 默认界面数组
  static List<GetPage> _normalGroupRouteS() {
    return [
      GetPage(
        name: PageIdConfig.index,
        page: () => const NavHomePage(),
      ),
      GetPage(
        name: PageIdConfig.webviewpag,
        page: () => const CommonWebPage(),
      )
    ];
  }

  static List<GetPage> _middleWaresRouteS() {
    return [];
  }
}
